* {
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    /*侧轴单行*/
    align-items: center;
}

#main {
    width: 100%;
    height: 70%;
}

#left {
    float: left;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    /*侧轴单行*/
    align-items: center;
    position: relative;
}

#right {
    box-sizing: border-box;
    padding: 0 2%;
    float: right;
    width: 50%;
    height: 100%;
}

table {
    width: 100%;
    border: 1px solid gray;
    text-align: left;
    border-collapse: collapse;
}

#table-title {
    height: 30px;
    padding: 0 10% 0 0;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

#table-container {
    box-sizing: border-box;
    padding: 0 10% 0 0;
    width: 100%;
    max-height: calc(100% - 100px);
    overflow: auto;
}

#table-options {
    box-sizing: border-box;
    padding: 0 10% 0 0;
    float: left;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    /*侧轴单行*/
    align-items: center;
}

table, th, td {
    border: 1px solid #b4b3b3;
    padding-left: 10px;
    padding-right: 10px;
}

table thead tr {
    background: #F0F0F0;
    text-align: left;
    position: sticky;
    top: 0;
}

table th {
    height: 25px;
}

table td {
    height: 25px;
    text-align: center; /* 水平居中 */
    vertical-align: middle; /* 垂直居中 */
}

.checkbox {
    width: 13px;
    margin: auto; /* 在水平居中时，给 input 添加 margin */
}

table input {
    width: 100%;
    height: 100%;
    display: block;
    /*不显示点击聚焦*/
    outline: none;
    border: none;
}

button {
    width: 50px;
    height: 30px;
    background-color: #47A2FF; /* 绿色背景 */
    border: none; /* 去掉边框 */
    color: white; /* 白色文字 */
    text-align: center; /* 文本居中 */
    text-decoration: none; /* 去掉下划线 */
    display: inline-block; /* 使按钮在同一行内 */
    border-radius: 5px; /* 圆角 */
    transition: background-color 0.3s, transform 0.3s; /* 过渡效果 */
}

.disabled {
    background-color: #f0f0f0; /* 设置禁用单元格的背景颜色 */
    pointer-events: none; /* 禁用鼠标事件 */
    color: #888; /* 设置文本颜色 */
}

/* 提示框样式 */
.tooltip {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* 提示框在按钮上方 */
    left: 50%;
    margin-left: -60px; /* 居中 */
    opacity: 0; /* 初始透明度 */
    transition: opacity 0.3s; /* 过渡效果 */
}

/* 提示框箭头 */
.tooltip::after {
    content: '';
    position: absolute;
    /* 在提示框下方 */
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent; /* 箭头颜色 */
}

/* 鼠标悬浮时显示提示框 */
#enlarge:hover .tooltip,
#reduce:hover .tooltip {
    visibility: visible;
    opacity: 1; /* 显示 */
}

